package com.iuie.ns.frame.exception;

/**
 * 业务层异常
 * @author lj
 * @createTime 2017年1月2日 下午3:11:01
 */
public class ServiceException extends RuntimeException{

	private static final long serialVersionUID = 4547158175272575427L;

	private String code;
	
	private Object info;


    public ServiceException() {
        super();
    }
    
    public ServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public ServiceException(String message, Throwable cause) {
        super(message, cause);
    }

    public ServiceException(String message) {
        super(message);
    }
    
    public ServiceException(String message, String code, Object info) {
        super(message);
        this.code = code;
        this.info = info;
    }
    
    public ServiceException(String message, String code) {
        super(message);
        this.code = code;
    }
    
    public ServiceException(Throwable cause) {
        super(cause);
    }
    
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Object getInfo() {
        return info;
    }

    public void setInfo(Object info) {
        this.info = info;
    }

	
}
